package kr.hkit.androidcomplete02.ch13;

import kr.hkit.androidcomplete02.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch13_Amain extends Activity {
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch13_amain);
	}

	public void mOnClick(View v){
		Intent intent = null;
		
		switch(v.getId()){
		case R.id.ch13_btn01:
			intent = new Intent(this, ProgressBarEx.class);
			break;
		case R.id.ch13_btn02:
			intent = new Intent(this, ProgressTitle.class);
			break;
		case R.id.ch13_btn03:
			intent = new Intent(this, ProgressTitle02.class);
			break;
		case R.id.ch13_btn04:
			intent = new Intent(this, SeekBarEx.class);
			break;
		case R.id.ch13_btn05:
			intent = new Intent(this, RatingBarEx.class);
			break;
		case R.id.ch13_btn06:
			intent = new Intent(this, DatePickerEx.class);
			break;
		case R.id.ch13_btn07:
			intent = new Intent(this, TimePickerEx.class);
			break;
		case R.id.ch13_btn08:
			intent = new Intent(this, PickerDialogEx.class);
			break;
		case R.id.ch13_btn09:
			intent = new Intent(this, WebViewEx.class);
			break;
		case R.id.ch13_btn10:
			intent = new Intent(this, SwitchEx.class);
			break;
		case R.id.ch13_btn11:
			intent = new Intent(this, SpaceEx.class);
			break;
		case R.id.ch13_btn12:
			intent = new Intent(this, NumberPickerEx.class);
			break;
		case R.id.ch13_btn13:
			intent = new Intent(this, CalendarViewEx.class);
			break;
		case R.id.ch13_btn14:
			intent = new Intent(this, ListPopupWindowEx.class);
			break;
		}
		
		startActivity(intent);
	}
}
